package com.easipass.unifiedconfig.script;

import java.io.Reader;
import java.io.Writer;

import com.easipass.unifiedconfig.InsufficientPrivillageException;
import com.easipass.unifiedconfig.NotFoundException;
import com.easipass.unifiedconfig.Session;

/**
 * 
 * @author itea
 * @date 2010-2-12
 * @version $Id$
 */
public interface ScriptExecuter {

	Object eval(Reader in)
	throws ScriptException, NotFoundException, InsufficientPrivillageException;
	
	Object eval(String script)
	throws ScriptException, NotFoundException, InsufficientPrivillageException;
	
	void setWriter(Writer out);
	
	void setSession(Session session);
}
